<template>
  <div>
    <el-switch
        v-model="locale"
        active-value="zh_cn"
        inactive-value="en_us"
        active-text="中文"
        inactive-text="英文"
        @change="value => $i18n.locale = value"
    ></el-switch>
     {{ $t('hello') }}
    <el-date-picker
      v-model="date"
      type="date">
    </el-date-picker>
  </div>
</template>

<script>
export default {
    name: 'test',
    data () {
        return {
            locale: 'zh_cn',
            date: '',
        }
    }
}
</script>

<style>

</style>
